package com.hhkj.study.admin.course.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hhkj.study.admin.course.enums.CourseAssocResourceTypeEnum;
import lombok.Data;

import java.io.Serializable;

/**
*
* @author SERVER
* @since 2024-09-18
*/
@Data
public class CourseStructureBase implements Serializable {

	@JsonSerialize(using = ToStringSerializer.class)
	private long id;

	private int categoryFlag;

	/**
	 * 课程结构(目录)名称
	*/
	private String name;
	/**
	 * 上级目录ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long parentId;
	/**
	 * 枚举类
	 * @see CourseAssocResourceTypeEnum
	 * 类型（视频-video、直播-live、资料-doc、题库-question、线下课-offline）
	*/
	private String type;

	/**
	 * 类型关联的资源ID，x_resource_*下的表
	*/
	private Long typeAssoId;

	private String typeAssoName;
	/**
	 * 课件ID,关联x_resource_course_doc表的ID
	 */
	private Long docId;

	private String docName;
	/**
	 * 题库Id,关联x_resource_question_bank表的ID
	 */
	private Long questionId;

	private String questionName;
	/**
	 * 排序
	*/
	private Integer orderNum;

}